<!doctype html>
<html>
<head>
  <meta charSet="utf-8"/>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, minimum-scale=1.0"/>
  <title>kafka测试</title>
</head>
<body>
  <button onclick="lk('登录')">登录</button>
  <button onclick="lk('点击')">点击</button>
  <button onclick="lk('收藏')">收藏</button>
  <button onclick="lk('投简历')">投简历</button>
  <button onclick="lk('上传简历')">上传简历</button>
  
  <script type="text/javascript" src='https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js'></script>
  <script>
        function lk(_action){
                var info = {};
                info.userId = 9527;
                info.actTime = new Date();
                info.action = _action;
                info.jobCode = "lagou";
                $.ajax({
            type: "post",
            url: "/log",
            data: JSON.stringify(info),
            success: function(res){
            }
        });
        }
  </script>
</body>
</html>
